﻿using System;
using System.Collections.Generic;
using bbv.DomainDrivenDesign.Interfaces;

namespace O1.Social.Newsgator.Repository
{
    public interface IReadOnlyRepository<TDataTransferObject, TId>
        where TDataTransferObject : class, IDataTransferObject<TId>
        where TId : IComparable<TId>
    {
        TDataTransferObject GetById(TId id);
        List<TDataTransferObject> GetAll();        
    }
}